[PATCH] output/jsonbuilder: helper function SCJbSetPrintAsciiString
authorPhilippe Antoine <pantoine@oisf.net>
Thu, 30 Oct 2025 10:18:15 +0000 (11:18 +0100)
committerAndreas Dolp <dev@andreas-dolp.de>
Sun, 22 Feb 2026 12:28:52 +0000 (13:28 +0100)
commitc801403caeede9278f7b420f29c78fa2a4691611
tree2b71f0e661c7bf0e32fb46ef6310c10fb1606ea1
parent597865811ff6ccd95e1c7f1ba540f532749025e2
[PATCH] output/jsonbuilder: helper function SCJbSetPrintAsciiString

To replace C PrintStringsToBuffer and avoid a stack alloc
+ copy

Ticket: 8004
(cherry picked from commit 7447651fa0956ff4ce55283a51b4a9494ec8cc6a)

Origin: upstream, https://github.com/OISF/suricata/commit/5abf9b81e78476f49ab074f3a74b5840747cd069.patch
Bug: https://redmine.openinfosecfoundation.org/issues/8004
Subject: Upstream fix for CVE-2025-64331

Gbp-Pq: Name CVE-2025-64331.patch
rust/dist/rust-bindings.h
rust/src/jsonbuilder.rs
src/output-json-alert.c
src/output-json-frame.c
src/output-json-http.c
src/output-json.c